package com.dk.pojo;

import org.apache.ibatis.type.Alias;

import java.sql.Timestamp;

@Alias("ChatRecord")
public class ChatRecord {

    /**
     * 信息发送方
     */
    private String sourceId;
    /**
     * 信息接收方
     */
    private String destinationId;
    /**
     * 信息内容
     */
    private String message;
    /**
     * 信息转发时间
     */
    private Timestamp time;
    /**
     * 0表示未发送信息
     * 1表示信息成功发送
     */
    private int sendState;
    /**
     * 0表示sourceId用户没有删除的信息
     * 1表示sourceId用户删除的信息
     */
    private int deleteState;

    public int getDeleteState() {
        return deleteState;
    }

    public void setDeleteState(int deleteState) {
        this.deleteState = deleteState;
    }

    public int getSendState() {
        return sendState;
    }

    public void setSendState(int sendState) {
        this.sendState = sendState;
    }

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public String getDestinationId() {
        return destinationId;
    }

    public void setDestinationId(String destinationId) {
        this.destinationId = destinationId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "ChatRecord{" +
                "sourceId='" + sourceId + '\'' +
                ", destinationId='" + destinationId + '\'' +
                ", message='" + message + '\'' +
                ", time=" + time +
                ", sendState=" + sendState +
                ", deleteState=" + deleteState +
                '}';
    }
}
